<?php
/**
 * Created by PhpStorm.
 * User: qingyun
 * Date: 17/2/24
 * Time: 下午8:30
 */
namespace Common\Model;

class RuleModel extends BaseModel
{
    /**
     * 删除数据
     * @param	array	$map	where语句数组形式
     * @return	boolean			操作是否成功
     */
    public function deleteData($map){
        $count=$this->where(array('pid'=>$map['id']))->count();
        if($count!=0){
            return false;
        }
        $result=$this->where($map)->delete();
        return $result;
    }
}